﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.Entity.Interface
{
    public class v_stk_inventory
    {
        public string RowId { get; set; }
        [Key]
        [Column(Order = 0)]
        [StringLength(36)]
        public string FID { get; set; }

        [Key]
        [Column(Order = 1)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public string FSTOCKORGID { get; set; }

        [StringLength(255)]
        public string fstockorgname { get; set; }

        [Key]
        [Column(Order = 2)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public string FMATERIALID { get; set; }

        [Key]
        [Column(Order = 3)]
        [StringLength(80)]
        public string item_code { get; set; }

        [StringLength(255)]
        public string item_name { get; set; }

        [Key]
        [Column(Order = 4)]
        [StringLength(510)]
        public string specs { get; set; }

        [Key]
        [Column(Order = 5)]
        [StringLength(30)]
        public string warehouse_code { get; set; }

        [Key]
        [Column(Order = 6)]
        [StringLength(80)]
        public string warehouse_name { get; set; }
        public string wareloc_name { get; set; }

        [Key]
        [Column(Order = 7)]
        public string stock_primary_unit_qty { get; set; }

        [StringLength(80)]
        public string basic_unit { get; set; }

        public string? basic_qty { get; set; }

        [Key]
        [Column(Order = 8)]
        [StringLength(255)]
        public string flotnumber { get; set; }

        [StringLength(80)]
        public string fstockstatus { get; set; }

        [Key]
        [Column(Order = 9)]
        [StringLength(36)]
        public string FOWNERTYPEID { get; set; }

        [StringLength(255)]
        public string fownername { get; set; }
    }
}
